package com.coffee.dao;

import com.coffee.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 2 * @Author: 刘佳乐 :面向百度编程
 * 3 * @Date: 2020/12/8 0:39
 * 4
 */
@Mapper
public interface UserDaoMapper {

    /**
     * 查询全部用户
     * */
    List<User> findAll();
    /**
     * 根据用户名查用户
     * */
    User findByUname(User user);
    /**
     * 注册
     * */
    Integer registry(User user);
}
